package com.cn.hjsj.api.api;

import com.cn.hjsj.api.bean.PackagesBean;

import java.util.Map;

/**
 * Created by zsj on 2017/9/13.
 */
public interface PackagesControl {

    /**
     * 插入套餐
     *
     * @param packagesBean
     * @return map
     */
    Map<String, Object> insert(PackagesBean packagesBean);


    /**
     * 修改套餐
     *
     * @param packagesBean         set条件
     * @param packagesBeanParmeter where条件
     * @return map
     */
    Map<String, Object> update(PackagesBean packagesBean, PackagesBean packagesBeanParmeter);


    /**
     * 删除套餐
     *
     * @param packagesBeanParmeter where条件
     * @return map
     */
    Map<String, Object> delete(PackagesBean packagesBeanParmeter);


    /**
     * 查询套餐列表
     *
     * @param packagesBeanParmeter where条件
     * @return map
     */
    Map<String, Object> getList(PackagesBean packagesBeanParmeter);


    /**
     * 查询套餐列表数量
     *
     * @param packagesBeanParmeter where条件
     * @return map
     */
    Map<String, Object> getListCount(PackagesBean packagesBeanParmeter);

}
